package com.fuhao.springboot.service.impl;

import com.fuhao.springboot.mapper.StudentsMapper;
import com.fuhao.springboot.model.Students;
import com.fuhao.springboot.service.StudentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.beans.Transient;
import java.util.List;
@Service
public class StudentsServiceImpl implements StudentsService {

    @Autowired
    private StudentsMapper studentsMapper;
    @Transactional
    @Override
    public List<Students> findStudentsAll() {
        return studentsMapper.selectByExample(null);
    }
}
